<?php

class Model_LibraryAcl extends Zend_Acl {
    public function __construct() {
        $this->add(new Zend_Acl_Resource('authentication'));
        $this->add(new Zend_Acl_Resource('visiteur'));
        $this->add(new Zend_Acl_Resource('frais'));
        $this->add(new Zend_Acl_Resource('stat'));
        $this->add(new Zend_Acl_Resource('error'));
        $this->add(new Zend_Acl_Resource('index'));
    
        $this->addRole(new Zend_Acl_Role('user'));
        $this->addRole(new Zend_Acl_Role('admin'));
        
       $this->allow('user','authentication');
       $this->allow('user','visiteur','index');
       $this->allow('user','frais','listeforfait');
       
       $this->allow('admin','authentication');
       $this->allow('admin','frais','listeforfait');
       $this->allow('admin','frais','index');
       $this->allow('admin','visiteur');
       $this->allow('admin','stat');
       $this->allow('admin','visiteur');
               
    }
}
?>
